module Site::RequirementHelper
  def search_for(args)
    session[:url_string] = "0-0-0-0" if session[:url_string].nil?
    s = session[:url_string].split('-')
    c1 = args[:price] ||= s[0]
    c2 = args[:progress] ||= s[1]
    c3 = args[:begtime] ||= s[2]
    c4 = args[:endtime] ||= s[3]
    url_str = c1+"-"+c2+"-"+c3+"-"+c4
    search_re_url(:old_url => url_str,:id => args[:id])
  end
end
